# -*- coding: utf-8 -*-

from flask_script import Manager, Server
from framework import app
from flask_migrate import Migrate, MigrateCommand
from framework.exts import db
from framework import model


manager = Manager(app)
Migrate(app=app, db=db)
manager.add_command('db', MigrateCommand) # 创建数据库映射命令
manager.add_command('start', Server(port=8088, use_debugger=True)) # 创建启动命令

if __name__ == '__main__':
    manager.run()
